import { create } from "zustand";
import _ from "lodash";

/**
 * 选中高亮
 */
const useVariable = create<VariableStore>((set) => ({
    variable: [
        {
            id: "6247485",
            label: 'sys.query (用户请求内容)',
            value: 'sys.query'
        },
        {
            id: "6246912",
            label: 'sys.result (节点返回内容)',
            value: 'sys.result'
        },
    ],
    setVariable: (data: Variable[]) => {
        set(() => {
            return ({ variable: data })
        });
    }
}));

export default useVariable;

